<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
 <head> 
  <title>宏宇个人博客</title> 
  <meta charset="utf-8" /> 
  <meta name="renderer" content="webkit|ie-comp|ie-stand" /> 
  <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> 
  <meta http-equiv="Cache-Control" content="no-siteapp" /> 
  <meta name="keywords" content="个人博客,王宏宇个人博客,个人博客系统,宏宇博客,王宏宇" /> 
  <meta name="description" content="王宏宇的个人博客" /> 
  <link rel="Bookmark" href="favicon.ico" /> 
  <link rel="Shortcut Icon" href="favicon.ico" /> 
  <!--[if lt IE 9]>
<script type="text/javascript" src="/staticRes/js/html5shiv.js"></script>
<script type="text/javascript" src="/staticRes/js/respond.min.js"></script>
<![endif]--> 
  <link rel="stylesheet" type="text/css" href="/Public/Home/assets/plugin/h-ui/css/H-ui.min.css" /> 
  <link rel="stylesheet" type="text/css" href="/Public/Home/assets/plugin/Hui-iconfont/1.0.8/iconfont.min.css" /> 
  <link rel="stylesheet" type="text/css" href="/Public/Home/assets/css/common.css" /> 
  <link rel="stylesheet" type="text/css" href="/Public/Home/assets/plugin/pifu/pifu.css" /> 
  <!--[if lt IE 9]>
<link href="/staticRes/lib/h-ui/css/H-ui.ie.css" rel="stylesheet" type="text/css" />
<![endif]--> 
  <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } function showSide(){$('.navbar-nav').toggle();}</script> 
 </head> 
 <body> 
	  <header class="navbar-wrapper"> 
   <div class="navbar navbar-fixed-top"> 
    <div class="container cl"> 
     <a class="navbar-logo hidden-xs" href="index.html"> <img class="logo" src="/Public/Home/assets/img/logo.png" alt="王宏宇的个人博客" /> </a> 
     <a class="logo navbar-logo-m visible-xs" href="index.html">王宏宇的个人博客</a> 
     <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:void(0);" onclick="showSide();"></a> 
     <nav class="nav navbar-nav nav-collapse w_menu" role="navigation"> 
      <ul class="cl"> 
       <li class="active"> <a href="<?php echo U('Index/index');?>" data-hover="首页">首页</a> </li> 
       <li> <a href="<?php echo U('Mood/index');?>" data-hover="心情">心情</a> </li> 
      </ul> 
     </nav> 
<!--      <nav class="navbar-nav navbar-userbar hidden-xs hidden-sm " style="top: 0;"> 
      <ul class="cl"> 
       <li class="userInfo dropDown dropDown_hover"> 
        <a href="javascript:;" ><img class="avatar radius" src="/Public/Home/assets/img/40.jpg" alt="丶似浅 "></a>
                            <ul class="dropDown-menu menu radius box-shadow">
                                <li><a href="/app/loginOut">退出</a></li>
                            </ul> <a href="#" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})"><img class="avatar size-S" src="/Public/Home/assets/img/qq.jpg" title="登入" />登入</a> </li> 
      </ul> 
     </nav>  -->
    </div> 
   </div> 
  </header> <!-- header html -->
  <section class="container pt-20"> 
   <!--<div class="Huialert Huialert-info"><i class="Hui-iconfont">&#xe6a6;</i>成功状态提示</div>--> 
   <!--left--> 
   <div class="col-sm-9 col-md-9"> 
    <!--滚动图--> 
    <div class="slider_main"> 
     <div class="slider"> 
      <div class="bd"> 
       <ul> 
        <li><a href="javascript:void(0)" target="_blank"><img src="/Public/Home/assets/img/temp/banner1.jpg" /></a></li> 
        <li><a href="javascript:void(0)" target="_blank"><img src="/Public/Home/assets/img/temp/banner8.png" /></a></li> 
       </ul> 
      </div> 
      <ol class="hd cl dots"> 
       <li>1</li> 
       <li>2</li> 
      </ol> 
      <a class="slider-arrow prev" href="javascript:void(0)"></a> 
      <a class="slider-arrow next" href="javascript:void(0)"></a> 
     </div> 
    </div> 
    <div class="mt-20 bg-fff box-shadow radius mb-5"> 
     <div class="tab-category"> 
      <a href=""><strong class="current">最新发布</strong></a> 
     </div> 
    </div> 
    <div class="art_content"> 
     <ul class="index_arc" id="newArticle"> 
      <?php if(is_array($moreArticleList)): foreach($moreArticleList as $key=>$vo): if(empty($vo['article_img'])): ?><li id="emptyImg" class="index_arc_item no_pic"> <h4 class="title"><a href="<?php echo U('Article/index',array('aid'=>$vo['article_id']));?>"><?php echo ($vo["article_title"]); ?></a></h4> 
           <div class="date_hits"> 
            <span>宏宇</span> 
            <span><?php echo date('Y-m-d',$vo['article_time']);?></span> 
            <span><a href="#">暂无分类</a></span> 
            <p class="hits"><i class="Hui-iconfont" title="点击量"></i> <?php echo ($vo["click"]); ?> &deg;</p> 
            <p class="commonts"><i class="Hui-iconfont" title="评论数"></i> <span id="sourceId::105" class="cy_cmt_count"><?php echo ($vo["num_comment"]); ?></span></p> 
           </div> 
           <div class="desc">
             <?php echo ($vo["article_digest"]); ?>
           </div> </li> 
        <?php else: ?>
            <li id="hasImg" class="index_arc_item"> <a href="<?php echo U('Article/index',array('aid'=>$vo['article_id']));?>" class="pic"> <img class="lazyload" data-original="/Public/ArticleImg/<?php echo ($vo["article_img"]); ?>" alt="应该选" /> </a> <h4 class="title"><a href="<?php echo U('Article/index',array('aid'=>$vo['article_id']));?>"><?php echo ($vo["article_title"]); ?></a></h4> 
       <div class="date_hits"> 
        <span>宏宇</span> 
        <span><?php echo date('Y-m-d',$vo['article_time']);?></span> 
        <span><a href="#">暂无分类</a></span> 
        <p class="hits"><i class="Hui-iconfont" title="点击量"></i> <?php echo ($vo["click"]); ?>&deg; </p> 
        <p class="commonts"><i class="Hui-iconfont" title="评论数"></i> <span class="cy_cmt_count"><?php echo ($vo["num_comment"]); ?></span></p> 
       </div> 
       <div class="desc">
        不论搭建什么样的网站，选择一个好的域名都是很有必要的，选择一个好的域名对网站的意义也是不言而喻的。每一个网站都有之对应的域名，就像人的名字一样。每个人都想自己有个好听的名字，网站也是一样。一个网站可以有多个域名，但是一个域名只能对应一个网站。&nbsp;一、域名要好记，方便输入&nbsp; &nbsp; &nbsp; &nbsp;域名本身的意义就是为了人们方便记忆才使用的，不然都用IP地址就好了。所以，网站域名一定要选择好记忆的。因为域名是
       </div> </li><?php endif; endforeach; endif; ?> 
     </ul>
      <div class="text-c mb-20" id="moreBlog"> 
       <a class="btn  radius btn-block " href="javascript:;" id="loadMore">点击加载更多</a> 
       <a class="btn  radius btn-block hidden" href="javascript:;">加载中……</a> 
      </div>
    </div> 
   </div> 
   <!--right--> 
   <div class="col-sm-3 col-md-3"> 
    <!--站点声明--> 
    <div class="panel panel-default mb-20"> 
     <div class="panel-body"> 
      <i class="Hui-iconfont" style="float: left;">&nbsp;</i> 
      <div class="slideTxtBox"> 
       <div class="bd"> 
        <ul> 
         <li><a href="javascript:void(0);">Lao博客测试版上线，欢迎访问</a></li> 
         <li><a href="javascript:void(0);">内容如有侵犯，请立即联系管理员删除</a></li> 
         <li><a href="javascript:void(0);">本站内容仅供学习和参阅，不做任何商业用途</a></li> 
        </ul> 
       </div> 
      </div> 
     </div> 
    </div> 
    <!--博主信息--> 
    <div class="bg-fff box-shadow radius mb-20"> 
     <div class="tab-category"> 
      <a href=""><strong>博主信息</strong></a> 
     </div> 
     <div class="tab-category-item"> 
      <ul class="index_recd"> 
       <li class="index_recd_item"><i class="Hui-iconfont"></i>姓名：王宏宇</li> 
       <li class="index_recd_item"><i class="Hui-iconfont"></i>职业：PHP开发</li> 
       <li class="index_recd_item"><i class="Hui-iconfont"></i>邮箱：<a href="mailto:903245545@qq.com">903245545@qq.com</a></li> 
       <li class="index_recd_item"><i class="Hui-iconfont"></i>定位：山西 &middot; 大同</li> 
      </ul> 
     </div> 
    </div> 
    <!--热门推荐--> 
    <div class="bg-fff box-shadow radius mb-20"> 
     <div class="tab-category"> 
      <a href=""><strong>热门推荐</strong></a> 
     </div> 
     <div class="tab-category-item"> 
      <ul class="index_recd">
      <?php if(is_array($hotArticleList)): foreach($hotArticleList as $key=>$vo): ?><li> <a href="<?php echo U('Article/index',array('aid'=>$vo['article_id']));?>"><?php echo ($vo["article_title"]); ?></a> <p class="hits"><i class="Hui-iconfont" title="评论数"></i> <?php echo ($vo["num_comment"]); ?></p></li><?php endforeach; endif; ?>
      </ul> 
     </div> 
    </div> 
    <!--点击排行--> 
    <div class="bg-fff box-shadow radius mb-20"> 
     <div class="tab-category"> 
      <a href=""><strong>点击排行</strong></a> 
     </div> 
     <div class="tab-category-item"> 
      <ul class="index_recd clickTop">
        <?php if(is_array($clickArticleList)): foreach($clickArticleList as $key=>$v): ?><li> <a href="<?php echo U('Article/index',array('aid'=>$v['article_id']));?>"><?php echo ($v["article_title"]); ?></a> <p class="hits"><i class="Hui-iconfont" title="点击量"></i> <?php echo ($v["click"]); ?>&deg; </p> </li><?php endforeach; endif; ?>
      </ul> 
     </div> 
    </div> 
    <!--标签--> 
 <!--    <div class="bg-fff box-shadow radius mb-20"> 
     <div class="tab-category"> 
      <a href=""><strong>标签云</strong></a> 
     </div> 
     <div class="tab-category-item"> 
      <div class="tags"> 
       <a href="http://www.h-ui.net/">H-ui前端框架</a> 
       <a href="http://www.h-ui.net/websafecolors.shtml">Web安全色</a> 
       <a href="http://www.h-ui.net/Hui-4.4-Unslider.shtml">jQuery轮播插件</a> 
       <a href="http://idc.likejianzhan.com/vhost/korea_hosting.php">韩国云虚拟主机</a> 
       <a href="http://www.h-ui.net/bug.shtml">IEbug</a> 
       <a href="http://www.h-ui.net/site.shtml">IT网址导航</a> 
       <a href="http://www.h-ui.net/icon/index.shtml">网站常用小图标</a> 
       <a href="http://www.h-ui.net/tools/jsformat.shtml">web工具箱</a> 
       <a href="http://www.h-ui.net/bg/index.shtml">网站常用背景素材</a> 
       <a href="http://www.h-ui.net/yuedu/chm.shtml">H-ui阅读</a> 
       <a href="http://www.h-ui.net/easydialog-v2.0/index.html">弹出层插件</a> 
       <a href="http://www.h-ui.net/SuperSlide2.1/demo.html">SuperSlide插件</a> 
       <a href="http://www.h-ui.net/TouchSlide1.1/demo.html">TouchSlide</a>
      </div> 
     </div> 
    </div> --> 
    <!--图片--> 
    <!-- <div class="bg-fff box-shadow radius mb-20"> 
     <div class="tab-category"> 
      <a href=""><strong>扫我关注</strong></a> 
     </div> 
     <div class="tab-category-item"> 
      <img data-original="/Public/Home/assets/temp/gg.jpg" class="img-responsive lazyload" alt="响应式图片" /> 
     </div> 
    </div> --> 
    <!--友情链接--> 
    <!-- <div class="bg-fff box-shadow radius mb-20"> 
     <div class="tab-category"> 
      <a href=""><strong>隔壁邻居</strong></a> 
     </div> 
     <div class="tab-category-item"> 
      <span><i class="Hui-iconfont"></i><a href="#" class="btn-link">百度</a></span> 
      <span><i class="Hui-iconfont"></i><a href="#" class="btn-link">淘宝</a></span> 
      <span><i class="Hui-iconfont"></i><a href="#" class="btn-link">腾讯</a></span> 
      <span><i class="Hui-iconfont"></i><a href="#" class="btn-link">慕课网</a></span> 
      <span><i class="Hui-iconfont"></i><a href="#" class="btn-link">h-ui</a></span> 
     </div> 
    </div>  -->
    <!--最近访客--> 
   <!--  <div class="bg-fff box-shadow radius mb-20"> 
     <div class="tab-category"> 
      <a href=""><strong>最近访客</strong></a> 
     </div> 
     <div class="panel-body"> 
      <ul class="recent"> 
       <div class="item">
        <img src="/Public/Home/assets/img/40.jpg" alt="" />
       </div> 
       <div class="item">
        <img src="/Public/Home/assets/img/40.jpg" alt="" />
       </div> 
       <div class="item">
        <img src="/Public/Home/assets/img/40.jpg" alt="" />
       </div> 
       <div class="item">
        <img src="/Public/Home/assets/img/40.jpg" alt="" />
       </div> 
       <div class="item">
        <img src="/Public/Home/assets/img/40.jpg" alt="" />
       </div> 
       <div class="item">
        <img src="/Public/Home/assets/img/40.jpg" alt="" />
       </div> 
       <div class="item">
        <img src="/Public/Home/assets/img/40.jpg" alt="" />
       </div> 
       <div class="item">
        <img src="/Public/Home/assets/img/40.jpg" alt="" />
       </div> 
       <div class="item">
        <img src="/Public/Home/assets/img/40.jpg" alt="" />
       </div> 
       <div class="item">
        <img src="/Public/Home/assets/img/40.jpg" alt="" />
       </div> 
      </ul> 
     </div> 
    </div> --> 
    <!--分享--> 
  <!--   <div class="bg-fff box-shadow radius mb-20"> 
     <div class="tab-category"> 
      <a href=""><strong>站点分享</strong></a> 
     </div> 
     <div class="panel-body"> 
      <div class="bdsharebuttonbox Hui-share">
       <a href="#" class="bds_weixin Hui-iconfont" data-cmd="weixin" title="分享到微信"></a>
       <a href="#" class="bds_qzone Hui-iconfont" data-cmd="qzone" title="分享到QQ空间"></a> 
       <a href="#" class="bds_sqq Hui-iconfont" data-cmd="sqq" title="分享到QQ好友"></a> 
       <a href="#" class="bds_tsina Hui-iconfont" data-cmd="tsina" title="分享到新浪微博"></a> 
       <a href="#" class="bds_tqq Hui-iconfont" data-cmd="tqq" title="分享到腾讯微博"></a>
      </div> 
     </div> 
    </div>  -->
   </div> 
  </section> 
  <footer class="footer mt-20"> 
   <div class="container-fluid" id="foot"> 
    <p>Copyright &copy; 2018 www.whyfx.cn <br /> <a href="#" target="_blank">晋ICP备17009902号</a> <!-- 更多模板：<a href="http://www.mycodes.net/" target="_blank">宏宇的博客</a> --><br /> </p> 
   </div> 
  </footer> <!-- foote.html  -->
  <script type="text/javascript" src="/Public/Home/assets/plugin/jquery/1.9.1/jquery.min.js"></script> 
  <script type="text/javascript" src="/Public/Home/assets/plugin/layer/3.0/layer.js"></script> 
  <script type="text/javascript" src="/Public/Home/assets/plugin/h-ui/js/H-ui.min.js"></script> 
  <script type="text/javascript" src="/Public/Home/assets/plugin/pifu/pifu.js"></script> 
  <script type="text/javascript" src="/Public/Home/assets/js/common.js"></script> 
  <script> $(function(){ $(window).on("scroll",backToTopFun); backToTopFun(); }); </script> 
  <script type="text/javascript" src="/Public/Home/assets/plugin/jquery.SuperSlide/2.1.1/jquery.SuperSlide.min.js"></script> 
  <script>
$(function(){
//幻灯片
jQuery(".slider_main .slider").slide({mainCell: ".bd ul", titCell: ".hd li", trigger: "mouseover", effect: "leftLoop", autoPlay: true, delayTime: 700, interTime: 2000, pnLoop: true, titOnClassName: "active"})
//tips
jQuery(".slideTxtBox").slide({titCell: ".hd ul", mainCell: ".bd ul", autoPage: true, effect: "top", autoPlay: true});
//标签
	$(".tags a").each(function(){
		var x = 9;
		var y = 0;
		var rand = parseInt(Math.random() * (x - y + 1) + y);
		$(this).addClass("tags"+rand)
	});
	
	$("img.lazyload").lazyload({failurelimit : 3});
});

//加载更多
$(function(){
  var page = 2; //默认查询页码
  $("#loadMore").click(function(){
    var url = "<?php echo U('Index/moreArticle');?>"
    var path = "/Public/ArticleImg/"
    $.post(url,{page:page},function(result){
      if (result.length==0) {
        $("#loadMore").html("已经到底了");
      } else {
        for(var i=0;i<result.length;i++){
        var articleTime = result[i].article_time;
        if (result[i].article_img==0) {
          var dataString = '<li id="emptyImg" class="index_arc_item no_pic">'
                 + '<h4 class="title"><a href="<?php echo U("Article/index");?>'+'?aid='+result[i].article_id+'">'+result[i].article_title+'</a></h4>'
                 + '<div class="date_hits">'
                 + '<span>宏宇</span>'
                 + '<span>'+dateFormat(result[i].article_time)+'</span>'
                 + '<span><a href="#">暂无分类</a></span>'
                 + '<p class="hits"><i class="Hui-iconfont" title="点击量"></i>'+result[i].click+' &deg;</p>'
                 + '<p class="commonts">'
                 + '<i class="Hui-iconfont" title="评论数"></i>'
                 + '<span id="sourceId::105" class="cy_cmt_count">'+result[i].num_comment+'</span></p>'
                 + '</div>'
                 + '<div class="desc">'+result[i].article_digest+'</div>'
                 + '</li>';
          $("#newArticle").append(dataString);
        } else {
          var dataString = '<li id="hasImg" class="index_arc_item">'
                 + '<a href="<?php echo U("Article/index");?>'+'?aid='+result[i].article_id+'" class="pic"> <img class="lazyload" data-original="'+path+result[i].article_img+'" alt="应该选" src="'+path+result[i].article_img+'"/></a>'
                 + '<h4 class="title"><a href="<?php echo U("Article/index");?>'+'?aid='+result[i].article_id+'">'+result[i].article_title+'</a></h4>'
                 + '<div class="date_hits">'
                 + '<span>宏宇</span>'
                 + '<span>'+dateFormat(result[i].article_time)+'</span>'
                 + '<span><a href="#">暂无分类</a></span>'
                 + '<p class="hits"><i class="Hui-iconfont" title="点击量"></i>'+result[i].click+' &deg;</p>'
                 + '<p class="commonts">'
                 + '<i class="Hui-iconfont" title="评论数"></i>'
                 + '<span id="sourceId::105" class="cy_cmt_count">'+result[i].num_comment+'</span></p>'
                 + '</div>'
                 + '<div class="desc">'+result[i].article_digest+'</div>'
                 + '</li>';
          $("#newArticle").append(dataString);
        }
      }

      page++;
      }
    },"json")
  })
})


//时间戳转时间
   function dateFormat(sj)
   {
      var now = new Date(sj*1000);
      var   year=now.getFullYear();    
      var   month=now.getMonth()+1;    
      var   date=now.getDate();    
      var   hour=now.getHours();    
      var   minute=now.getMinutes();    
      var   second=now.getSeconds();    
      return   year+"-"+month+"-"+date;    
        
   }
</script>   
 </body>
</html>